package com.xhsj.user.pms.overseas.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.google.common.collect.Lists;
import com.xhsj.user.generalprocess.vo.GeneralAuditVo;
import com.xhsj.user.pms.overseas.entity.TbPamOverseasPrompt;
import com.xhsj.user.pms.patent.domain.TbPamOverseasApply;
import com.xhsj.user.pms.patent.domain.TbPamOverseasApplyCountry;
import com.xhsj.user.pms.patent.domain.TbPamOverseasApplyFile;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.List;

/**
 * @Author: liuqinghua
 * @Description:国内案件提醒总经理审批
 * @Data:2021/1/26
 */
@Data
public class GmMonitorListAduitDto{
    // 审核状态 0通过 1退回
    @NotNull(message ="审核状态status不能为空" )
    private Integer status;
    /**
     * 交底书id
     */
    @NotBlank(message ="交底书id disclosureId不能为空")
    private String disclosureId;

    /**
     * 交底书id
     */
    @NotBlank(message ="交底书编号 num不能为空")
    private String num;

    /**
     * 交底书名
     */
    @NotBlank(message ="交底书名 disclosureName不能为空")
    private String disclosureName;

    /**
     * 案卷号
     */
    @NotBlank(message ="案卷号 archivesNum不能为空")
    private String archivesNum;

    /**
     * tb_pam_overseas_regional_details主键id关联
     */
    @NotNull(message ="regionalDetailsId不能为空" )
    private Long regionalDetailsId;

    @NotBlank(message ="优先权号 priorityNum不能为空")
    private String priorityNum;

    /**
     * 优先权日
     */
    @NotNull(message ="优先权日 priorityDate不能为空")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date priorityDate;
    // ipr
    private Long ipr;

    // 期限(月)
    private int term;

    // 国家意见和专利部门意见
    private String opinionText;

    @NotNull(message = "国家/地区不能为空")
    @Size(min = 1,message = "国家/地区不能为空")
    @Valid
    private List<String> countryNames = Lists.newArrayList(); // 选择国家名称
}
